package com.yc.chatroom.server.pojo;

import com.yc.chatroom.common.Constant;
import io.netty.channel.ChannelHandlerContext;


public class ChannelInfo {
    private ChannelHandlerContext channel;
    private Integer functionCode;//功能编码
    private Integer LoginStatus;//登陆状态

    public ChannelInfo() {
    }

    public ChannelInfo(ChannelHandlerContext channel) {
        this.channel = channel;
        LoginStatus = Constant.LOGIN_STATUS_YES;
        functionCode = Constant.FUNCTION_CODE_CHATROOM;
    }

    public ChannelInfo(ChannelHandlerContext channel, Integer loginStatus) {
        this.channel = channel;
        LoginStatus = loginStatus;
        functionCode = Constant.FUNCTION_CODE_CHATROOM;
    }

    public ChannelInfo(ChannelHandlerContext channel, Integer functionCode, Integer loginStatus) {
        this.channel = channel;
        this.functionCode = functionCode;
        LoginStatus = loginStatus;
    }

    public ChannelHandlerContext getChannel() {
        return channel;
    }

    public void setChannel(ChannelHandlerContext channel) {
        this.channel = channel;
    }

    public Integer getLoginStatus() {
        return LoginStatus;
    }

    public void setLoginStatus(Integer loginStatus) {
        LoginStatus = loginStatus;
    }

    public Integer getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(Integer functionCode) {
        this.functionCode = functionCode;
    }
}
